<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Pulog.Models.Post>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Search</h2>
    <% if (Model != null && Model.Count() !=0)
       {
            Html.RenderPartial("ListofPosts", Model);
       }
       else
       {%>
           <span>No Results Found for "<%=TempData["searchTerm"]%>"</span>
        <%} %>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

